package cn.wx.scholar.core.entity;

import java.io.UnsupportedEncodingException;
import cn.wx.common.persistence.base.BaseEntity;

/**
 * <p>
 * 社交媒体
 * </p>
 *
 * @author  
 * @since 2018-07-17
 */
public class Social extends BaseEntity {


	private String userData;


	private byte[] title;


	private String time;


	private String url;


	private String sourceType;


	private byte[] text;

	public String getUserData() {
		return userData;
	}

	public void setUserData(String userData) {
		this.userData = userData;
	}

	public byte[] getTitle() {
		return title;
	}

	public String getTitleSrc_() {
		try {
			return new String(title,"utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return null;
	}
	
	public void setTitle(byte[] title) {
		this.title = title;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getSourceType() {
		return sourceType;
	}

	public void setSourceType(String sourceType) {
		this.sourceType = sourceType;
	}

	public byte[] getText() {
		return text;
	}

	public void setText(byte[] text) {
		this.text = text;
	}

	public String getTextSrc_() {
		try {
			return new String(text,"utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return null;
	}
	
}
